import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop044_查询余额记录"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,"客户管理","客户余额","余额记录")

firefox.find_element_by_name("money_change_num").send_keys("2199")
firefox.find_element_by_xpath("//button").click()

try:
    firefox.find_element_by_xpath("//td[contains(.,'2199')]/following-sibling::td")
    writeLog("%s 测试通过" % testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)

